package com.promise.pojo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;

import java.sql.Date;

@Data
public class Warning {
    // 主键
    @TableId
    @TableField("warning_id")
    private Integer warningId;
    //警告时间
    @TableField("warning_date")
    private Date warningDate;
    //接收警告人id
    @TableField("receiver_id")
    private Integer receiverId;
    //接收警告人name
    @TableField("receiver_name")
    private String receiverName;
    //接收警告人email
    @TableField("receiver_email")
    @JsonProperty("receiver")
    private String receiverEmail;
    //警告类型
    @TableField("warning_type")
    private String warningType;
    //警告内容
    @TableField("warning_content")
    private String warningContent;
    //严重程度 1表示严重 2表示一般
    private Integer severity;
    //是否故障 1表示故障 2表示没故障
    private Integer fault;
    //值班人id
    @TableField("watch_id")
    private Integer watchId;
    //值班人name
    @TableField("watch_name")
    private String watchName;
}
